#!/bin/sh

#sed -i '/\/opt\/Betasoft\/base\/pgsql\/lib/d' /etc/ld.so.conf
#sed -i '/include ld.so.conf.d\/\*.conf/a\/opt/Betasoft/base/pgsql/lib' /etc/ld.so.conf
#ldconfig > /dev/null 2>&1

echo 'export JAVA_HOME=/opt/Betasoft/base/jre' >> /etc/profile
echo 'export PATH=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/root/bin:/bin' >> /etc/profile
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Betasoft/base/pgsql/lib:.' >> /etc/profile

touch /opt/Betasoft/base/jetty/beta/etc/online

source /etc/profile





